package com.example.testingscaffolding.Some;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.StringJoiner;

@Service
public class SomeService {

    @Value("${app.name}")
    private String nane;

    @Value("${app.owner}")
    private String owner;

    @Value("${app.port}")
    private Integer port;

    public void printValue(){
        StringJoiner joiner=new StringJoiner((";"));
        joiner.add(nane).add(owner).add(String.valueOf(port));

        String result=joiner.toString();
        System.out.println("result="+result);
    }


}
